﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace StuEdu.Web.StuBaseInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int stuId=(Convert.ToInt32(strid));
					ShowInfo(stuId);
				}
			}
		}
		
	private void ShowInfo(int stuId)
	{
		StuEdu.BLL.StuBaseInfo bll=new StuEdu.BLL.StuBaseInfo();
		StuEdu.Model.StuBaseInfo model=bll.GetModel(stuId);
		this.lblstuId.Text=model.stuId.ToString();
		this.lblstuNo.Text=model.stuNo.ToString();
		this.lblmicStuNo.Text=model.micStuNo.ToString();
		this.lblstuName.Text=model.stuName;
		this.lblstuSex.Text=model.stuSex?"是":"否";
		this.lblstuBirth.Text=model.stuBirth.ToString();
		this.lblstuNativePlace.Text=model.stuNativePlace;
		this.lblstuHomeTel.Text=model.stuHomeTel;

	}


    }
}
